package com.qys.livesMall.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("h2_channel")
public class H2Channel implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer	id;

    /**
     * 通道名称
     */
    @TableField(value = "channel_name")
    private String	channelName;
    /**
     * 1 用户 2 店铺
     */
    @TableField(value = "type")
    private Integer	type;

    /**
     * 0 关闭 1 开启
     */
    @TableField(value = "`status`")
    private Integer	status;

    /**
     * 创建时间
     */
    @TableField(value = "`create_time`")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime create_time;
    /**
     * 更新时间
     */
    @TableField(value = "`update_time`")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime update_time;

    /**
     * 0 不删除 1 删除
     */
    @TableField(value = "`deleted`")
    private Integer deleted;

    /**
     * 国家Id
     *
     */
    private Long countryId;

    @TableField(exist = false)
    private String country;
}
